package com.example.demo.bean;

import lombok.Data;


public class Medicine {
    private int id; //药品id
    private String medicineID;//药品编号
    private String name; //药品名
    private String size; //药品规格
    private String type;    //药品类型
    private String OTC;     //是否为处方药
    private String supplier;   //供应商编号
    private int price;   //价格
    private String shelfLife;   //药品保质期
    private String day;   //入库时间
    private String shelf;   //货架ID
    private int count;   //药品库存
    private String status;   //库存状态

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getMedicineID() {
        return medicineID;
    }

    public void setMedicineID(String medicineID) {
        this.medicineID = medicineID;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSize() {
        return size;
    }

    public void setSize(String size) {
        this.size = size;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getOTC() {
        return OTC;
    }

    public void setOTC(String OTC) {
        this.OTC = OTC;
    }

    public String getSupplier() {
        return supplier;
    }

    public void setSupplier(String supplier) {
        this.supplier = supplier;
    }

    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }

    public String getShelfLife() {
        return shelfLife;
    }

    public void setShelfLife(String shelfLife) {
        this.shelfLife = shelfLife;
    }

    public String getDay() {
        return day;
    }

    public void setDay(String day) {
        this.day = day;
    }

    public String getShelf() {
        return shelf;
    }

    public void setShelf(String shelf) {
        this.shelf = shelf;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Medicine(int id, String medicineID, String name, String size, String type, String OTC, String supplier, int price, String shelfLife, String day, String shelf, int count, String status) {
        this.id = id;
        this.medicineID = medicineID;
        this.name = name;
        this.size = size;
        this.type = type;
        this.OTC = OTC;
        this.supplier = supplier;
        this.price = price;
        this.shelfLife = shelfLife;
        this.day = day;
        this.shelf = shelf;
        this.count = count;
        this.status = status;
    }

    @Override
    public String toString() {
        return "Medicine{" +
                "id=" + id +
                ", medicineID='" + medicineID + '\'' +
                ", name='" + name + '\'' +
                ", size='" + size + '\'' +
                ", type='" + type + '\'' +
                ", OTC='" + OTC + '\'' +
                ", supplier='" + supplier + '\'' +
                ", price=" + price +
                ", shelfLife='" + shelfLife + '\'' +
                ", day='" + day + '\'' +
                ", shelf='" + shelf + '\'' +
                ", count=" + count +
                ", status='" + status + '\'' +
                '}';
    }
}
